package com.qcby.shiwu;

public class UserServiceImpl implements UserService{
    @Override
    @Transactional
    public void createUser(String username) {
        System.out.println("[业务操作] 创建用户: " + username);
        // 取消注释测试回滚
        // throw new RuntimeException("模拟创建失败");
    }

    @Override
    public void deleteUser(String username) {
        System.out.println("[业务操作] 删除用户: " + username);
    }
}
